package com.dxy.common.exp;

import lombok.Data;

@Data
public class ServiceException extends RuntimeException {

    private static final long serialVersionUID = 8183520636622108948L;
    private Integer code = 201;

    public ServiceException(Integer code, String msg) {
        super(msg);
        this.code = code;
    }

    public ServiceException(String msg) {
        super(msg);
    }

}
